import request from '@/utils/request'
const OrderHeaderServices = {
  actions: {
    /**
     * 订单分页
     */
    orderHeaderPage({ commit }, params) {
      return new Promise((resolve, reject) => {
        request.get('orderHeader/page', params).then((res) => {
          resolve(res)
        }).catch((err) => {
          reject(err)
        })
      })
    },
    /**
     * 订单配送
     */
    orderSend({ commit }, orderId) {
      return new Promise((resolve, reject) => {
        request.post('orderHeader/orderSend', orderId).then((res) => {
          resolve(res)
        }).catch((err) => {
          reject(err)
        })
      })
    },
  }
}
export default OrderHeaderServices
